﻿using AbpVnext_Module.Dto;
using AutoMapper;
using youzackcom.Model;

namespace youzackcom;

public class youzackcomApplicationAutoMapperProfile : Profile
{
    public youzackcomApplicationAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
        //Permission
        CreateMap<Permission, PermissionDto>();
        CreateMap<PermissionDto, Permission>();
        CreateMap<PermissionCreateDto, Permission>();
        CreateMap<PermissionUpdateDto, Permission>();
        CreateMap<Permission, PermissionPageResultDto>();
        CreateMap<Permission, PermissionCreateResultDto>();
        CreateMap<Permission, PermissionUpdateResultDto>();

        //PermissionGrantss 配置映射
        CreateMap<PermissionGrants, PermissionGrantsDto>();
        CreateMap<PermissionGrantsDto, PermissionGrants>();
        CreateMap<PermissionGrantsCreateDto, PermissionGrants>();
        CreateMap<PermissionGrantsUpdateDto, PermissionGrants>();
        CreateMap<PermissionGrants, PermissionGrantsPageResultDto>();

        CreateMap<PermissionGrants, PermissionGrantsCreateResultDto>();
        CreateMap<PermissionGrants, PermissionGrantsUpdateResultDto>();

    }
}
